/*
 * @Description: 根路由
 * @Author: smellycat littlecandyi@163.com
 * @Date: 2025-04-12 23:07:36
 * @LastEditors: smellycat littlecandyi@163.com
 * @LastEditTime: 2025-04-13 00:10:46
 */

import { createRootRoute, Link, Outlet } from '@tanstack/react-router'

export const Route = createRootRoute({
	component: () => (
		<>
			<div className='flex gap-2 p-2'>
				<Link to='/' className='[&.active]:font-bold'>
					Home
				</Link>{' '}
				<Link to='/about' className='[&.active]:font-bold'>
					About
				</Link>
			</div>
			<hr />
			<Outlet />
		</>
	)
})
